# adds precompiled header
CONFIG += precompile_header
PRECOMPILED_HEADER = stdafx.h

# adds _DEBUG macro in debug configuration
# remark: Visual Studio makes it by default
CONFIG(debug, debug|release) {
    DEFINES += _DEBUG
}

QT += opengl xml

unix {
    QMAKE_CXXFLAGS += -std=c++0x
    LIBS += -lopenal -l3ds -lgsl -lgsl -lgslcblas
}

#add lib3ds, ok?
win32 {
    CONFIG += console
    INCLUDEPATH += .
    QMAKE_CXXFLAGS += -std=gnu++0x

    LIBS += -L$$PWD/../../../[lib]/OpenAL_SDK/libs/Win32/ -lOpenAL32
    INCLUDEPATH += $$PWD/../../../[lib]/OpenAL_SDK/include
    DEPENDPATH += $$PWD/../../../[lib]/OpenAL_SDK/include
}

HEADERS += \
    stdafx.h \
    core/coresettings.h \
    core/window.h \
    core/iengine.h \
    core/inc.h \
    core/idleengine.h \
    glc/texturegroup.h \
    demo/tileengine.h \
    demo/camera.h \
    util/vec3.h \
    util/mat4.h \
    util/mat3.h \
    util/vec2.h \
    util/vec4.h \
    alc/sound.h \
    alc/soundmanager.h \
    demo/entity/entitycontainer.h \
    demo/entity/ientity.h \
    glc/texture2d.h \
    glc/clientstate.h \
    demo/entity/decoration.h \
    glc/displaylist.h \
    glc/model/vertex.h \
    glc/shading/directlight.h \
    glc/model/boundingbox.h \
    glc/opengl/bufferobject.h \
    glc/opengl/buffer.h \
    glc/shading/phongmaterial.h \
    glc/model/mesh.h \
    glc/model/model.h \
    util/filepath.h \
    glc/texturing/texture2dmap.h \
    glc/model/modelmaterial.h \
    glc/model/modelloader.h \
    glc/inc.h \
    glc/model/modelrenderer.h \
    glc/model/modelvertex.h \
    core/glwidget.h \
    graphics/scene.h \
    graphics/tilegroup.h \
    graphics/tilerenderer.h \
    graphics/maprenderer.h \
    types.hpp \
    demo/xml/domnodebuilder.h \
    data/map/iglobalmap.hpp \
    data/map/ieditableglobalmap.hpp \
    data/map/globalmap.hpp \
    data/map/ieditablecell.hpp \
    data/map/icell.hpp \
    data/map/globalobjectsarray.hpp \
    data/map/iglobalobject.hpp \
    data/map/tile.hpp \
    data/map/ieditabletile.hpp \
    data/map/itile.hpp \
    data/map/cell.hpp \
    demo/mapgenerator.hpp

SOURCES += \
    main.cpp \
    stdafx.cpp \
    core/coresettings.cpp \
    core/window.cpp \
    demo/tileengine.cpp \
    demo/camera.cpp \
    glc/texturegroup.cpp \
    alc/sound.cpp \
    alc/soundmanager.cpp \
    demo/entity/entitycontainer.cpp \
    glc/texture2d.cpp \
    glc/clientstate.cpp \
    demo/entity/decoration.cpp \
    glc/displaylist.cpp \
    glc/shading/directlight.cpp \
    glc/model/boundingbox.cpp \
    glc/shading/phongmaterial.cpp \
    glc/model/mesh.cpp \
    glc/model/model.cpp \
    glc/texturing/texture2dmap.cpp \
    glc/model/modelmaterial.cpp \
    glc/model/modelloader.cpp \
    glc/model/modelrenderer.cpp \
    core/glwidget.cpp \
    graphics/scene.cpp \
    graphics/tilegroup.cpp \
    graphics/tilerenderer.cpp \
    graphics/maprenderer.cpp \
    demo/xml/domnodebuilder.cpp \
    data/map/globalmap.cpp \
    data/map/globalobjectsarray.cpp \
    data/map/cell.cpp \
    data/map/tile.cpp \
    demo/mapgenerator.cpp

OTHER_FILES += \
    modules.txt

FORMS +=
